<?php
include APPLICATION_PATH ."/../library/ElearningExtractorService.php";
class IndexController extends Zend_Controller_Action
{

	private $_WSDL_URI="http://localhost/DataCollector/public/?wsdl";
	
    public function init()
    {
        /* Initialize action controller here */
    }

    public function indexAction()
    {
        // action body
    	// action body
    	$this->_helper->viewRenderer->setNoRender(true);
    	 
    	if(isset($_GET['wsdl'])) {
    		$autodiscover = new Zend_Soap_AutoDiscover();
    		$autodiscover->setClass('ElearningExtractorService');
    		//ElearningExtractorService
    		$autodiscover->handle();
    	} else {
    		$soap = new Zend_Soap_Server($this->_WSDL_URI,array(	
    				'compression'	=>	SOAP_COMPRESSION_ACCEPT,
					'encoding'		=>	'UTF-8'));
    		$soap->setClass('ElearningExtractorService');
    		$soap->handle();
    	}
    }

    public function wsserveurAction()
    {
        
    }


}



